import Vue from 'vue'
import VueRouter from 'vue-router'
import List from '../views/List.vue';
import Detail from '../views/Detail.vue';

Vue.use(VueRouter)

const routes = [
  {
    path:'/',
    redirect:'list',
    component:List
  },
  {
    path:'/list',
    component:List
  },
  {
    path:'/detail',
    component:Detail
  }
]

const router = new VueRouter({
  routes
})

export default router
